<style>
    .define{
        background-color: #f6f6f6;
    }
    .container-fluid{
        padding: 0;
    }
    .define-nav{
        background-color: #FFF;
        padding: 0.39393939rem 0 0.39393939rem 0.848484rem;
    }
    .define-nav .pull-left{
        color: #666;
        display: inline-block;
        font-size: 0.54rem;
        margin-top:6px;
    }
    .define-nav .pull-right{
        margin-right: 0.909090rem;
    }
    #admin_search_people,
    #admin_add_people{
        width: 3.272727rem;
    }
    .define-nav-input{
        margin-top: 0.87878787rem;
        margin-left: 0.909090rem;
        background-color: #FFF;
        padding:  0.757575rem 0;
        margin-right: 0.909090rem;
    }
    .define-nav-input .pull-right{
        margin-right: 0.909090rem;
    }
    .define-nav-input .define-table-input:nth-child(1){
        padding-left: 0.60606060rem;
    }
    .define-nav-input .define-table-input:nth-child(3),
    .define-nav-input .define-table-input:nth-child(2){
        padding-left: 1.818181rem;
    }
    .define-nav-input span{
        font-size: 0.424242rem;
        display: inline-block;
        margin-top: 1px;
    }
    .define-nav-input input{
        margin: 0;
        padding: 0.1rem 0.2rem;
        width: 7.878787rem;
        height: 0.727272rem;
        line-height: normal;
        font-size: 0.424242rem;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border-color: #E6E6E6;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    .define-nav-input input::-webkit-input-placeholder {
        font-size: 1px;
        line-height: 1;
    }
    .define-nav-input input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-nav-input input::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-nav-input input:-ms-input-placeholder { /* Internet Explorer 10+ */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-table-input button{
        background-color: #F7F9FA;
        border: 1px solid #E6E6E6;
        color: #999;
        height: 1.03rem;
        line-height: 0.606060rem;
        padding-left: 0.303030rem;
        padding-right: 0.303030rem;
        font-size: 0.424242rem;
        border-radius: 3px;
    }
    .define-table-input button i{
        padding-left: 1.333333rem;
    }
    .define-table-input button:focus,
    .define-table-input button:active,
    .define-table-input button:hover{
        border: 1px solid #E6E6E6;
    }
    .define-table{
        margin-left: 0.9090909rem;
        margin-right: 0.9090909rem;
    }
    .table{
        border-radius: 3px;
        margin-bottom: 0;
        border: 1px solid #E6E6E6;
        font-size: 0.424242rem;
    }
    .table thead{
        background-color: #FAFAFA;
        color: #999;
    }
    .table tr{
        padding-left: 0.606060rem;
    }
    .table td{
        border-top: 1px solid #E6E6E6;
        border-bottom: 1px solid #E6E6E6;
        padding: 0.51515151rem 0.242424rem;
        line-height: 1.2;
    }
    .table tbody{
        background-color: #FFF;
    }
    .table tbody td{
        vertical-align: bottom;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .table-hover tbody tr:hover td{
        background-color: #fafafa;
    }
    .table tbody td:nth-child(2) img{
        width: 1.212121rem;
        vertical-align: -1px;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
    }
    td.clearfix img{
        width: 0.393939rem;
        vertical-align: -2px;
        margin-right: 5px;
    }
    td.clearfix div:nth-child(2),
    td.clearfix div:nth-child(3){
        margin-left: 0.606060rem;
    }
    .table tbody tr td.clearfix:last-child{
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    .table tbody tr td.clearfix:last-child .pull-left{
        padding: 0.1rem 0.2rem ;
    }
    .table tbody tr td.clearfix:last-child .pull-left:hover{
        background-color: #e6e6e6;
        border-radius: 2px;
    }
    .define-paging{
        margin-top: 0.6363rem;
        display: block;
        color: #999;
        font-size: 0.363636rem;
        text-align: center;
    }
    /*改变鼠标悬浮样式  ↓*/
    .table tbody tr td.clearfix:last-child .pull-left:hover,
    .define-paging .pull-left:not(:first-child){
        cursor: pointer;
    }
    /*改变鼠标悬浮样式  ↑*/
    .define-paging .pull-left{
        padding: 0 0.272727rem;
    }
    .define-page.define-active{
        color: #47489A;
    }
    .define-paging .pull-left:first-child{
        margin-left: 38%;
        letter-spacing: 0.2rem;
    }
    /*选择科室*/
    .dropdown-menu{
        font-size: 0.42424242rem;
        text-align: center;
        left: 27%;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        min-width: 72%;
        padding: 0;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
    }
    .dropdown-menu li{
        line-height: 1;
        padding: 5px 0;
    }
    .dropdown-menu li:hover{
        background-color: #E6E6E6;
    }

    /*弹层样式*/
    .modal{
        margin: 0;
        width: 22.5%;
        min-width: 334px;
        left: 40%;
    }
    .modal.fade.in{
        top: 26%;
    }
    .modal-backdrop, .modal-backdrop.fade.in{
        opacity: 0.5;
    }
    .modal-header{
        background-color: #fafafa;
        color: #1CC7BD;
        font-size: 12px;
        padding: 0.3484848rem 0.636363rem;
    }
    .modal-header img{
        position: absolute;
        top:8%;
        right: 0.636363rem;
    }
    .modal-header img:hover{
        -webkit-animation: img_hover_rotate .2s linear;
        -o-animation: img_hover_rotate .2s linear;
        animation: img_hover_rotate .2s linear;
    }
    .modal .modal-body{
        font-size: 12px;
        padding: 2.4em;
    }
    @-webkit-keyframes img_hover_rotate {
        0%{  -webkit-transform: rotate(0deg);  }
        100%{  -webkit-transform: rotate(90deg);  }
    }
    @-o-keyframes img_hover_rotate {
        0%{  -o-transform: rotate(0deg);  }
        100% {  -o-transform: rotate(90deg);  }
    }
    @-ms-keyframes img_hover_rotate {
        0%{  -ms-transform: rotate(0deg);  }
        100%{  -ms-transform: rotate(90deg);  }
    }
    @-moz-keyframes img_hover_rotate {
        0%{  -moz-transform: rotate(0deg);  }
        100%{  -moz-transform: rotate(90deg);  }
    }
    @-khtml-keyframes img_hover_rotate {
        0%{  -khtml-transform: rotate(0deg);  }
        100%{  -khtml-transform: rotate(90deg);  }
    }
    @keyframes  img_hover_rotate{
        0%{  transform: rotate(0deg);  }
        100%{  transform: rotate(90deg);  }
    }
    .modal .modal-body table{
        border: none;
        width: 100%;
    }
    #modal_select_btn+img,
    #modal_select_status_btn+img{
        position: absolute;
        right: 5.5%;
        top: 34.5%;
    }
    .modal .modal-body table>tbody>tr>td{
        padding-bottom: 0.57575757rem;
    }
    .modal .modal-body table>tbody>tr>td:nth-child(1){
        width: 57px;
        text-align: right;
        padding-right: 5px;
    }
    .modal .modal-body table>tbody>tr>td:nth-child(1) img{
        vertical-align: text-top;
    }
    .modal .modal-body input{
        margin: 0;
        width: 96%;
        font-size: 12px;
        height: 0.78787878rem;
        line-height: 0.78787878rem;
        -webkit-box-shadow: none;
        box-shadow: none;
        border: 1px solid #e6e6e6;
        border-radius: 3px;
    }
    .modal .modal-body input:focus{
        border-color: rgba(82, 168, 236, 0.8);
        outline: 0;
        outline: thin dotted \9;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
    }
    .modal .modal-body input:-moz-placeholder{
        color: #C9C8C8;
        font-size: 12px;
    }
    .modal .modal-body input:-ms-input-placeholder{
        color: #C9C8C8;
        font-size: 12px;
    }
    .modal .modal-body input::-webkit-input-placeholder {
        color: #C9C8C8;
        font-size: 12px;
    }
    #modal_kt{
        background-color: #1CC7BD;
        color: #FFF;
        text-align: center;
        padding: 0.166666rem 0;
        border-radius: 3px;
        width: 24%;
        margin: 1em auto 0 auto;
    }
    #modal_kt:hover{
        background-color: #18ADA4;
    }

    /*选择科室*/
    #modal_select_admin,
    #modal_select_status{
        display: none;
        border: 1px solid #e6e6e6;
        position: absolute;
        background-color: #FFF;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
        border-top: none;
        overflow: auto;
    }
    #modal_select_admin.active,
    #modal_select_status.active{
        display: block;
    }
    #modal_select_status div,
    #modal_select_admin div{
        height: 0.78787878rem;
        line-height: 0.78787878rem;
        padding: 4px 6px;
    }
    #modal_select_admin div:hover,
    #modal_select_status div:hover{
        background-color: #FAFAFA;
    }
    #modal_select_admin div.active,
    #modal_select_status div.active{
        background-color: #e6e6e6;
    }
    #modal_select_status{
        z-index: 1;
        max-height: 108px;
        overflow-y: auto;
    }

    /*请填写完整信息弹层*/
    #department_modal_tip{
        width: 15%;
        min-width: 220px;
        z-index: 1051;
    }
    #department_modal_tip .modal-body{
        text-align: center;
    }
    #department_modal_tip .modal-header{
        background-color: #FFF;
    }
    #department_modal_tip .modal-body div:nth-child(1){
        margin-top: 1em;
    }
    #department_modal_tip .modal-body div:nth-child(2){
        background-color: #1CC7BD;
        color: #FFF;
        margin: 2em auto 0 auto;
        width: 30%;
        padding: 0.1666666rem 0;
        border-radius: 3px;
    }

    /*适配*/
    @media (min-width: 1024px){
        /*18*/
        .define-nav .pull-left{
            font-size: 15px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.33;
        }
        td.clearfix img{
            width: 0.55rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.6rem;
        }
        .table tbody td:nth-child(2) img{
            vertical-align: 0;
        }
        .define-nav-input input{
            line-height: normal;
            font-size: 0.424242rem;
        }
        .modal-header img{
            top: 3.5%
        }
        #modal_select_btn+img,
        #modal_select_status_btn+img{
            right: 0.5%;
            top: 28%;
        }
        #department_modal_tip .modal-header img{
            top: 5.8%
        }
    }
    @media (min-width: 1100px) {
        /*20*/
        .define-table-input button{
            line-height: 1.45;
        }
        td.clearfix img{
            vertical-align: -2px;
        }
    }
    @media (min-width: 1280px) {
        /*22*/
        .define-nav .pull-left{
            font-size: 17px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.7;
        }
        td.clearfix img{
            width: 0.5rem;
        }
        #department_modal_tip .modal-header img{
            top: 6.8%
        }
    }
    @media (min-width: 1366px) {
        /*24*/
        .define-nav .pull-left{
            font-size: 17px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.9;
        }
        td.clearfix img{
            width: 0.45rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.5rem;
        }
        #modal_select_btn+img,
        #modal_select_status_btn+img{
            right: 1%;
            top: 28.5%;
        }
    }
    @media (min-width: 1440px) {
        /*25*/
        .define-nav .pull-left{
            margin-top: 4px;
        }
        .define-table-input button{
            line-height: 1.95;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.45rem;
        }
        .modal-header img{
            top: 5.8%
        }
    }
    @media (min-width: 1680px) {
        /*28*/
        .define-nav .pull-left{
            font-size: 18px;
            margin-top: 5px;
        }
        .define-table-input button{
            line-height: 2.2;
        }
        td.clearfix img{
            width: 0.36rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.4rem;
        }
        .table tbody td:nth-child(2) img{
            vertical-align: -1px;
        }
        .modal-header img{
            top: 3.1%
        }
        #modal_select_btn+img,
        #modal_select_status_btn+img{
            right: 1%;
            top: 30%;
        }
        #department_modal_tip .modal-header img{
            top: 7.8%
        }
    }
    @media (min-width: 1920px) {
        /*33*/
        .define-nav .pull-left{
            font-size: 0.54rem;
            margin-top: 6px;
        }
        #modal_select_btn+img,
        #modal_select_status_btn+img{
            right: 2%;
        }
    }

</style>

<div class="define">
    <div class="define-nav clearfix">
        <div class="pull-left">管理账号管理</div>
        <div class="pull-right"><img id="admin_add_people" src="/statics/images/sever_add.png" alt=""></div>
    </div>

    <div style="margin-left: 0.90rem;font-size: 0.424242rem;margin-top: 0.545454rem;margin-bottom: 0.545454rem;">全部结果</div>

    <div class="define-table">
        <table class="table table-hover" id="table_handle">
            <thead>
            <tr>
                <td>序号</td>
                <td>账号</td>
                <td>姓名</td>
                <td>手机号</td>
                <td>邮箱</td>
                <td>类型</td>
                <td>权限分配</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody>
            <?php if($getData){ foreach($getData as $val){ ?>
            <tr>
                <td><?=$val['rid']?></td>
                <td><?=$val['username']?></td>
                <td><?=$val['realname']?></td>
                <td><?=$val['mobile']?></td>
                <td><?=$val['email']?$val['email']:'--'?></td>
                <td><?=$val['role_name']?></td>
                <td>所有</td>
                <td class="clearfix">
                    <div class="pull-left"><img src="/statics/images/sever_edit.png" alt="">编辑</div>
                    <div class="pull-left define_used" data_id="<?=$val['rid']?>">
                        <?php if($val['is_active']){?>
                        <img src="/statics/images/sever_disabled.png" alt="">禁用
                        <?php }else{?>
                        <img src="/statics/images/sever_undisabled.png" alt="">启用
                        <?php }?>
                    </div>
                </td>
            </tr>
            <?php }}?>

            </tbody>
        </table>
    </div>

    <!--分页  开始-->
    <!--分页  结束-->
</div>

<!--添加人员弹层  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="add_user_modal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">添加权限</div>
            </div>
            <!--默认  添加绑定-->
            <div class="modal-body">
                <table>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">姓名:</td>
                        <td>
                            <input type="text" placeholder="请输入姓名">
                        </td>
                    </tr>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">手机号:</td>
                        <td>
                            <input type="text" placeholder="请输入手机号">
                        </td>
                    </tr>
                    <tr>
                        <td>邮箱:</td>
                        <td>
                            <input type="text" placeholder="请输入邮箱">
                        </td>
                    </tr>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">账号类型:</td>
                        <td style="position: relative">
                            <input id="modal_select_status_btn" onfocus="this.blur()" type="text" placeholder="请选择账号类型" style="cursor: default;">
                            <img src="/statics/images/sever_unretrieve.png" alt="">
                            <div id="modal_select_status">
                                <div>子账号</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>权限:</td>
                        <td style="position: relative;">
                            <input id="modal_select_btn" style="cursor: default;" onfocus="this.blur()" type="text" placeholder="请选择科室">
                            <img src="/statics/images/sever_unretrieve.png" alt="">
                            <div id="modal_select_admin">
                                <div>是</div>
                                <div>有</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">密码:</td>
                        <td>
                            <input type="text" placeholder="请输入密码">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="padding-bottom: 0">
                            <div id="modal_kt">提交</div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<!--添加人员弹层  结束-->

<!--信息填写提示  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="department_modal_tip">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">信息</div>
            </div>
            <div class="modal-body">
                <div>请填写完成必填信息！</div>
                <div data-dismiss="modal" aria-label="Close">确定</div>
            </div>
        </div>
    </div>
</div>
<!--信息填写提示  结束-->

<!--添加人员form表单  开始-->
<form action="" method="post" id="add_user_form" style="display: none;">
    <input type="text" name="realname"><!--姓名-->
    <input type="text" name="mobile"><!--手机号-->
    <input type="text" name="email"><!--邮箱-->
    <input type="text" name="role_id"><!--账号类型-->
    <input type="text" name="limit"><!--权限-->
    <input type="text" name="password"><!--密码-->
</form>
<!--添加人员form表单  结束-->

<script src="/statics/js/account_management.js"></script>